import request from '@/utils/request'

// 查询其他消费列表
export function listOtherprice(query) {
  return request({
    url: '/mahjong/otherprice/list',
    method: 'get',
    params: query
  })
}

// 查询其他消费详细
export function getOtherprice(id) {
  return request({
    url: '/mahjong/otherprice/' + id,
    method: 'get'
  })
}

// 新增其他消费
export function addOtherprice(data) {
  return request({
    url: '/mahjong/otherprice',
    method: 'post',
    data: data
  })
}

// 修改其他消费
export function updateOtherprice(data) {
  return request({
    url: '/mahjong/otherprice',
    method: 'put',
    data: data
  })
}

// 删除其他消费
export function delOtherprice(id) {
  return request({
    url: '/mahjong/otherprice/' + id,
    method: 'delete'
  })
}

// 导出其他消费
export function exportOtherprice(query) {
  return request({
    url: '/mahjong/otherprice/export',
    method: 'get',
    params: query
  })
}